package test;

import factory.Buyer;
import factory.IntermediaryJdkProxyFactory;
import factory.RealBuyer;

public class Demo6 {
    public static void main(String[] args) {
    Buyer buyer = IntermediaryJdkProxyFactory.create(new RealBuyer());
    String result = buyer.havealook();
        System.out.println(result);
    }
}
